package com.diaohw.platform.framework.db.obj;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author 刁海文
 * @Remark 公用基础model 包含创建
 * @since 2023/6/27 21:31
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class BaseLogModel<T> extends Model<BaseLogModel<T>> {
    /**
     * 主键ID
     */
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 创建时间
     */
    @TableField(value = "CREATED", fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

}
